import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import ToolDetail from '../views/ToolDetail.vue'
import GenerateContent from '../views/GenerateContent.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/tool/:id',
    name: 'tool-detail',
    component: ToolDetail
  },
  {
    path: '/generate/:id',
    name: 'generate',
    component: GenerateContent
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router 